var app = getApp()
Page({
    data: {
        userInfo: {},
        isShowFootNav:true,
        num:0
    },
    onLoad: function () {

    },
    onShow:function () {
        var pageObj = this;
        pageObj.setData({userInfo: app.globalData.userInfo});
        app.getUserOrderListAjax();
    },

    //底部切换页面方法
    toUrl:function (e) {
        var url = e.currentTarget.dataset.url;
        if(url!='/pages/mine/mine'){
	        if(url == ''){
		        //develop（开发版），trial（体验版），release（正式版）
		        var res = {
                    appid:app.globalData.appid,
                    path: app.globalData.path,
                    envVersion: app.globalData.envVersion
		        }
		        app.crossToUrl(res)
          }else {
            app.redirectTo({url: url+'?scene='+app.globalData.channelId});
          }
        }
    },
    problemTap:function () {
        app.navigateTo({url:'../problem/problem'});
    },
    downloadTap:function(){
        app.navigateTo({url:'../download/download'});
    },
    callTap:function () {
        app.makePhoneCall("020-11183");
    },
    orderDoingTap:function () {
        app.navigateTo({url:'../orderlist/orderlist?bizFlag='+app.globalData.bizDoingFlag});
    },
    orderFinishTap:function () {
        app.navigateTo({url:'../orderlist/orderlist?bizFlag='+app.globalData.bizFinishFlag});
    },
    orderAllTap:function () {
        app.navigateTo({url:'../orderlist/orderlist?bizFlag='+app.globalData.bizAllFlag});
    }
});